package cn.tedu.store.service;

import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import cn.tedu.store.entity.Goods;

@RunWith(SpringRunner.class)
@SpringBootTest
public class GoodsServiceTestCase {
	
	@Autowired
	private IGoodsService goodsService;
	
	@Test
	public void getHotList() {
		List<Goods> hotList = goodsService.getHotList();
		System.err.println("BEGIN");
		for (Goods goods : hotList) {
			System.err.println(goods);
		}
		System.err.println("END");
	}
	
	
	@Test
	public void getById() {
		Long id=100000424L;
		Goods good = goodsService.getById(id);
		System.err.println(good);
	}

}
